<?php
namespace app\modules\backend\controllers;

use Yii;
use app\components\XUtils;

class IndexController extends BaseController {

    public function actionIndex() {

 		$system = [];
 		$system['downUrl'] = 'https://git.oschina.net/yeoman01/yii2cms';
 		$system['yiiVersion'] = Yii::getVersion();
 		$system['os'] = php_uname('s').' '.php_uname('r');
 		$system['phpVersion'] = PHP_VERSION;
 		$system['runEnv'] = $_SERVER["SERVER_SOFTWARE"]; //运行环境
 		$system['runType'] = PHP_SAPI; //运行方式
 		$system['mysqlVersion'] = Yii::$app->db->pdo->getAttribute(\PDO::ATTR_SERVER_VERSION);
 		$system['uploadMaxFilesize'] = ini_get('upload_max_filesize');
 		$system['maxExecutionTime'] = ini_get('max_execution_time');

 		$team = [];
 		$team['copyright'] = 'yeoman';
 		$team['author'] = 'yeoman';
 		$team['gitHub'] = 'https://git.oschina.net/yeoman01/yii2cms';
 		$team['qq'] = '1612640861(背包客)';
        return $this->render('index',['system' => $system,'team' => $team]);
    }

}
